﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="BaoCaoCongViec.aspx.cs" Inherits="ChamCong.NhanVien.BaoCaoCongViec" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        div.childMenu
        {
        }
        
        div.childMenu ul
        {
            list-style: none;
            margin: 0px;
            padding: 0px;
            width: auto;
        }
        
        div.childMenu ul li
        {
            padding-right: 5px;
        }
        
        div.childMenu ul li a
        {
            background-color: #D4D4D4;
            color: #525252;
            display: block;
            line-height: 1.35em;
            padding: 4px 10px;
            text-decoration: none;
            white-space: nowrap;
        }
        
        div.childMenu ul li a:hover
        {
            background-color: #3399FF;
            color: #FFF;
            text-decoration: none;
        }
        
        div.childMenu ul li a:active
        {
            background-color: #3399FF;
            color: #cfdbe6;
            text-decoration: none;
        }
        
        div.childMenu ul li a:visited
        {
            font-weight: bold;
        }
        div.childMenu ul li a.current
        {
            background-color: #3399FF;
            color: #FFF;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div>
        <asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" CssClass="childMenu"
            SkipLinkText="">
            <Items>
                <asp:MenuItem Text="Giao việc" Value="" NavigateUrl="~/NhanVien/BaoCaoCongViec.aspx?ttd=2">
                </asp:MenuItem>
                <asp:MenuItem Text="Yêu cầu chờ duyệt" Value="" NavigateUrl="~/NhanVien/BaoCaoCongViec.aspx?ttd=3">
                </asp:MenuItem>
                <asp:MenuItem Text="Yêu cầu đã duyệt" Value="" NavigateUrl="~/NhanVien/BaoCaoCongViec.aspx?ttd=4">
                </asp:MenuItem>
                <asp:MenuItem Text="Yêu cầu không duyệt" Value="" NavigateUrl="~/NhanVien/BaoCaoCongViec.aspx?ttd=5">
                </asp:MenuItem>
            </Items>
        </asp:Menu>
    </div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <sbc:sbcMsgBox ID="sbcMsgBox1" runat="server" UseJQuery="True" />
    <div style="width: 900px;">
        <div style="float: left; width: 300px; background-color: inherit;">
            <asp:UpdatePanel ID="updatepanel" runat="server">
                <ContentTemplate>
                    <asp:GridView ID="gvGiaoViec" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvGiaoViec_rdb"
                        CellPadding="4" EmptyDataText="Hiện thời không có dữ liệu." ForeColor="#333333"
                        GridLines="None" AllowPaging="True" PageSize="12" 
                        onpageindexchanging="gvGiaoViec_PageIndexChanging">
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <Columns>
                            <asp:BoundField DataField="MaGiaoViec" HeaderText="Mã" SortExpression="MaGiaoViec" />
                            <asp:BoundField DataField="TuNgay" HeaderText="Từ Ngày" SortExpression="TuNgay" DataFormatString="{0:dd/MM/yyyy}" />
                            <asp:BoundField DataField="DenNgay" HeaderText="Đến Ngày" SortExpression="DenNgay"
                                DataFormatString="{0:dd/MM/yyyy}" />
                            <asp:BoundField DataField="TrangThaiDoc" HeaderText="TTD" Visible="false"></asp:BoundField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <%--<asp:Button ID="btnChiTiet" runat="server" Text="Chi Tiết" OnClick="btnChiTiet_Click" />--%>
                                    <asp:LinkButton ID="likbtnChiTiet" runat="server" OnClick="likbtnChiTiet_Click">Chi tiết</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center"  CssClass="pager" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                        <SortedAscendingCellStyle BackColor="#E9E7E2" />
                        <SortedAscendingHeaderStyle BackColor="#506C8C" />
                        <SortedDescendingCellStyle BackColor="#FFFDF8" />
                        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <asp:UpdatePanel ID="up6" runat="server">
            <ContentTemplate>
                <div style="float: right; width: 500px;">
                    <div>
                        <asp:UpdatePanel ID="up5" runat="server">
                            <ContentTemplate>
                                <table runat="server" id="tbNhapKQ">
                                    <tr>
                                        <td>
                                            Công việc:
                                        </td>
                                        <td>
                                            <asp:Label ID="lbCongViec" runat="server" Font-Bold="True" ForeColor="#CC6600"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Kết Quả:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtKetQua" runat="server"></asp:TextBox>
                                        </td>
                                        <td>
                                            <asp:Button ID="btnOK" runat="server" Text="Cập nhật" OnClick="btnOK_Click" CssClass="button" />
                                        </td>
                                    </tr>
                                </table>
                                <sbc:sbcMsgBox ID="sbcMsgBox2" runat="server" UseJQuery="True" />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                    <div>
                        <asp:GridView ID="gvCTGiaoViec" runat="server" AutoGenerateColumns="False" Width="500px"
                            OnRowDataBound="gvCTGiaoViec_rdb" CellPadding="4" ForeColor="#333333" GridLines="None">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:BoundField DataField="MaCongViec" HeaderText="Mã" SortExpression="MaCongViec" />
                                <asp:BoundField DataField="TenCongViec" HeaderText="Công Việc" SortExpression="TenCongViec" />
                                <asp:BoundField DataField="DonVi" HeaderText="Đơn Vị" SortExpression="DonVi" />
                                <asp:BoundField DataField="ChiTieu" HeaderText="Chỉ Tiêu" SortExpression="ChiTieu">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="HeSo" HeaderText="Hệ Số" SortExpression="HeSo">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="Kết Quả">
                                    <ItemTemplate>
                                        <asp:Label ID="lbKetQua" runat="server" Text='<%#AutoConvert(Eval("KetQua"))%>' />
                                    </ItemTemplate>
                                    <ItemStyle Font-Bold="True" HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:Button ID="btnSuaKQ" runat="server" Text="Sửa" OnClick="btnSuaKQ_Click" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <EditRowStyle BackColor="#7C6F57" />
                            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#E3EAEB" />
                            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                            <SortedAscendingCellStyle BackColor="#F8FAFA" />
                            <SortedAscendingHeaderStyle BackColor="#246B61" />
                            <SortedDescendingCellStyle BackColor="#D4DFE1" />
                            <SortedDescendingHeaderStyle BackColor="#15524A" />
                        </asp:GridView>
                        <asp:Label ID="lbChuThich" runat="server" Text="Phản hồi: " Font-Bold="True" Font-Italic="True"
                            ForeColor="#009933"></asp:Label><br />
                        <asp:TextBox ID="txtChuThich" runat="server" TextMode="MultiLine" Width="350px"></asp:TextBox><br />
                        <sbc:sbcMsgBox ID="sbcMsgBox" runat="server" UseJQuery="True" />
                        <asp:Button ID="btnGuiBaoCao" runat="server" Text="Gửi Báo Cáo" OnClick="btnGuiBaoCao_Click"
                            class="button" />
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
